package com.ask.clonedemo;

public class Point {
    int x,y;
    Point(int x, int y){
        this.x = x;
        this.y = y;
    }

    // 添加clone方法用于深拷贝
    public  Point clone(){
        return new Point(this.x, this.y);
    }
}
